<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$head_tittle}</title>
<link href="__ROOT__/Public/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="__HCSS__/style.css" rel="stylesheet" type="text/css" />
<link href="__HCSS__/index.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__HJS__/view.js"></script>
<title>{$pageconfig.tittle}</title>
<script>
$(document).ready(function(){
	//退出登录页面
   $('.outlogin').click(function(){                   
      var url="{:U('Public/outlogin')}";
      $.post(url,function(data){
	     $(".logininfor").html('<a href="{:U("Index/login")}" style=" color:#B61D1D;">&nbsp;您好，&nbsp;&nbsp;请登录</a>&nbsp;&nbsp;<a href="{:U("Index/reg")}">免费注册</a>');
	  });
	  return false;

   });
   $(".head_line2_wrap_li1").click(function(){
	  	  var url="{:U('index')}";
	  	  window.location.href=url;
   });
});
</script>

</head>

<body>
<div class="header">
   <div class="head_line1_wrap" align="center">
      <div class="head_line_center" >
	       <div class="fl">欢迎访问霞客系统</div>
		   <div class="fr logininfor">
		   	<if condition="session('uid')">
		   		  <a href="{:U("User/index")}" class="loginname">{:getUserName(session('uid'))}</a>&nbsp;&nbsp;<a href="#" class="outlogin">[退出]</a>
               <else/>
                  <a href="{:U('Index/login')}" style=" color:#B61D1D;">&nbsp;您好，&nbsp;&nbsp;请登录</a>&nbsp;&nbsp;<a href="{:U('Index/reg')}">免费注册</a>
		   	</if>
		   </div>
	  </div>
	</div>
	<div class="head_line2_wrap" align="center">
      <div class="head_line_center" >
          <div class="head_line2_wrap_li1" style="cursor:pointer"></div> 
		  <div class="head_line2_wrap_li2">
		        <div class="fl"><input type="text" class="head_line2_wrap_li2_input" /></div>
				<div class="fr"><input type="submit" value="搜索" class="head_line2_wrap_li2_submit" /></div>
				<div class="clear"></div>
		  </div>
		  <div class="head_line2_wrap_li3">
		        <div class="head_line2_wrap_li3_l" onclick="window.location.href='{:U(shop)}'">购物车{:count($_SESSION['shop'])}</div>
				<div class="head_line2_wrap_li3_r">去结算</div>
		  </div>  
	  </div>
	</div>
	<div class="head_line3_wrap" align="center">
	     <div class="head_line_center" >
		      <div class="head_line3_l">商品分类导航</div>
<style>
.xiake li{ font-family:"microsoft yahei"; font-size:15px; cursor:pointer;}
.xiake li a{ display:block;}
.xiake li .focus{color:#B1191A;font-weight: bold;}
</style>			  
			  <ul class="fl xiake">
			      <li><a href="{:U('Index/index')}" <if condition="I('name') eq null">class="focus"</if>>首页</a></li> 
			      <li>
			          <a href="{:U('Index/goodsList',array('lid'=>10,'name'=>'jiadian'))}" <if condition="I('name') eq jiadian">class="focus"</if> >
			               家用电器
			          </a>
			      </li> 
			      <li>
			           <a href="{:U('Index/goodsList',array('lid'=>12,'name'=>'jiaju'))}" <if condition="I('name') eq jiaju">class="focus"</if> >
			               家居家纺
			           </a>
			      </li>
			      <li>
				      <a href="{:U('Index/goodsList',array('lid'=>13,'name'=>'fuzhuang'))}" <if condition="I('name') eq fuzhuang">class="focus"</if> >
				           服装箱包
				      </a>
			      </li>
			      <li>
				      <a href="{:U('Index/goodsList',array('lid'=>14,'name'=>'huazhuang'))}" <if condition="I('name') eq huazhuang">class="focus"</if> >
				           个护化妆
				      </a>
			      </li>
			      <li>
			          <a href="{:U('Index/goodsList',array('lid'=>21,'name'=>'wenhua'))}" <if condition="I('name') eq wenhua">class="focus"</if> >
			                书籍文化
			          </a>
			      </li>
<!-- 			      <li><a href="">顾客留言</a></li> -->
			      <li><a href="{:U('User/index')}" >会员中心</a></li>
			  </ul>
		 </div>
	</div>
	
</div>

